package com.sxt.bus.controller;



import com.sxt.bus.vo.SalesbackVo;
import com.sxt.springcloud.bus.SalesbackClientService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2019-12-26
 */
@RestController
@RequestMapping("/salesback")
public class SalesbackController {

    @Autowired
    private SalesbackClientService salesbackClientService;



    /**
     * 查询
     */
    @RequestMapping("loadAllSalesback")
    public DataGridView loadAllSalesback(SalesbackVo salesbackVo) {
        return this.salesbackClientService.loadAllSalesback(salesbackVo);
    }

    /**
     * 添加退货信息
     */
    @RequestMapping("addSalesback")
    public ResultObj addSalesback(Integer id, Integer number, String remark){
        return this.salesbackClientService.addSalesback(id,number,remark);
    }
}



